//
//  BKLCommonKey.swift
//  BKL_HealthProject
//
//  Created by QuShuai on 2018/7/19.
//  Copyright © 2018年 yunjing. All rights reserved.
//

import Foundation


let BKL_UserDefault = UserDefaults.standard


/* 用户登录状态  0:未登录 1:登录*/
let UserStatus_key_isLogin = "keyIsLogin"
/* 用户信息  */
let UserInfo_key_dic = "keyUserInfo"


var UserStatus_isLogin:String?{
    return BKL_UserDefault.object(forKey: UserStatus_key_isLogin) as? String
}

var UserInfo_data:[String:Any]{
    return BKL_UserDefault.object(forKey: UserInfo_key_dic) as! Dictionary<String, Any>
}

var UserInfo_userId:String{
    return UserInfo_data["id"] as! String
}

var UserInfo_token:String{
    return UserInfo_data["token"] as! String
}

var UserInfo_account:String{
    return UserInfo_data["account"] as! String
}

var UserInfo_setting:Bool{
    return (UserInfo_data["setting"] != nil)
}


